import request from '@/utils/request'

// 查询贴现人完善任务记录列表
export function listDiscountLog(query) {
  return request({
    url: '/server/discountLog/list',
    method: 'get',
    params: query
  })
}

// 查询贴现人完善任务记录详细
export function getDiscountLog(id) {
  return request({
    url: '/server/discountLog/' + id,
    method: 'get'
  })
}

// 新增贴现人完善任务记录
export function addDiscountLog(data) {
  return request({
    url: '/server/discountLog',
    method: 'post',
    data: data
  })
}

// 修改贴现人完善任务记录
export function updateDiscountLog(data) {
  return request({
    url: '/server/discountLog',
    method: 'put',
    data: data
  })
}

// 删除贴现人完善任务记录
export function delDiscountLog(id) {
  return request({
    url: '/server/discountLog/' + id,
    method: 'delete'
  })
}
